package com.ai.entity.made.camera;

import com.ai.entity.made.CoordinateBO;
import com.ai.entity.made.LineBO;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

@Data
@Accessors(chain = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SwithCameraFunctionRegionsAlgorithmBO {

    private List<CoordinateBO> spots;
    private List<LineBO> linePoints;

    private Integer code;
    private Integer id;
    private String nickname;

    public SwithCameraFunctionRegionsAlgorithmBO init() {
        code = 100;
        spots = new ArrayList<CoordinateBO>();
        CoordinateBO c1 = new CoordinateBO(1, 1);
        CoordinateBO c2 = new CoordinateBO(959, 1);
        CoordinateBO c3 = new CoordinateBO(959, 539);
        CoordinateBO c4 = new CoordinateBO(1, 539);
        spots.add(c1);
        spots.add(c2);
        spots.add(c3);
        spots.add(c4);
        return this;
    }
}
